package com.baidu.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author Mawq
 * @Date 2021/8/30 14:34
 * @Version 1.0
 */
@Controller
public class PageController {

    @RequestMapping(value = {"/index","/"})
    public String index(Model model){
        model.addAttribute("title","Test");
        model.addAttribute("atext","再小的帆也能远航!");
        return "index";
    }
}
